<table cellspacing=0 cellpadding=0 border=0 width=100% >
	<tr><td height=10 colspan="2"></td></tr>
	<tr><td class="proprietario_bacheca" colspan="2">Richieste di amicizia</td></tr>
	
	<tr><td height=20 colspan="2"></td></tr>
	<tr><td height=1 colspan="2" bgcolor="#285885"></td></tr>
	<tr><td height=20 colspan="2"></td></tr>
</table>
<?php
if(count($arr_amici)){
	echo "<table cellspacing=0 cellpadding=0 border=0 width=550>";
	foreach( $arr_amici as $key => $value){
		
		//echo "<b>{$value['id_richiede']} - {$value['nome']} </b> <input type=\"button\" value=\"Accetta\" class=\"bottone_small\" onclick=\"amicizia.accetta('{$value['id_richiede']}' , '{$value['id_record']}');\">  <input type=\"button\" value=\"Non ora\" class=\"bottone_small\" onclick=\"amicizia.rifiuta('{$value['id_richiede']}' , '{$value['id_record']}');\"><br/>";
		echo "
			<tr bgcolor=\"#e3e9f1\">
				<td width=\"100\" height=\"50\"  style=\"background-image : url(".base_url()."doc/utenti/".$value['id_utente']."/".$value['id_pagina']."/user_medium.jpg); 
				background-repeat : no-repeat ; 
				background-position : center center ;\"></td>
				<td style=\"padding-left : 10px ; \" class=\"grigio_fino\" width=\"290\"><a href=\"".base_url()."bacheca/index/".$value['id_pagina']."\" class=\"link_standard\">{$value['nome']}</a>
				<br/>{$value['comune_residenza']}</td>
				<td align=\"right\" style=\"padding-right : 10 ; \" width=100 ><input type=\"button\" value=\"Accetta\" class=\"bottone_small\" onclick=\"amicizia.accetta('{$value['id_richiede']}' , '{$value['id_record']}');\"></td>
				<td align=\"right\" style=\"padding-right : 10 ; \"><input type=\"button\" value=\"Non ora\" class=\"bottone_small\" onclick=\"amicizia.rifiuta('{$value['id_richiede']}' , '{$value['id_record']}');\"  style=\"background-color : #ddd ; color : #666 ;\"></td>
			</tr>
			<tr><td colspan=3 height=5></td></tr>
			<tr><td colspan=3 height=1 bgcolor=\"#eeeeee\"></td></tr>
			<tr><td colspan=3 height=5></td></tr>";		
	
	}
	echo "</table>";
}
else echo "<div class=\"grigio_fino\">Nessun amico presente in questo elenco.</div>";
?>
